package com.wenshi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("device_data")
public class DeviceData {
    @TableId(value = "id", type = IdType.AUTO)
    public Long id;
    public Long deviceId;
    public int hydrogenPressure;
    public int circulatingWaterPumpOutput;
    public int waterFlowRateAndSpeed;
    public int powerCurrentFeedback;
    public int workingMode;
    public int waterPumpStatus;
    public int returnWaterTemperature;
    public int topWaterTankLevelAlarm;
    public int inflowPressure;
    public int currentHproductionCapacity;
    public int purgingStatus;
    public int externalPressureOfEquipment;
    public int pumpSpeed;
    public int coolingFanSpeed;
    public int waterTankTemperature;
    public int hLeakageAlarmSignal;
    public int highCurrentSetValueFuelCellStack;
    public int powerVoltageFeedback;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public Date timestamp;
}
